package com.yixing.tech.system.service;

import com.yixing.tech.common.base.*;
import com.yixing.tech.common.vo.s3.UserVO;
import com.yixing.tech.common.vo.s5.EntitySchema;

import java.util.List;

/**
 * @author yixing tech
 * at 2022/2/28
 * describe：
 */
public interface EntityManagerService extends IBaseService<EntitySchema, EntitySchema> {
    public void saveOrUpdateConfig(String objId,String type,List<EntitySchema.AttrConfig> configs) throws BusinessException;

    public List<EntitySchema.AttrConfig> getConfig(String objId, String type) throws BusinessException;

    /**
     * 上架
     * @param objVO
     * @throws BusinessException
     */
    public void addedObj(EntitySchema objVO) throws BusinessException;

    /**
     * 上架
     * @throws BusinessException
     */
    public void addedObj() throws BusinessException;

    public Page<EntitySchema> listPage(PageRow<ConditionsVO> pageRow);
    public List<EntitySchema> list(ConditionsVO vo);

    public EntitySchema queryById(String id, UserVO user)throws BusinessException;

    /**
     * 拷贝对象
     * @param objVO
     * @throws BusinessException
     */
    public void cloneObj(EntitySchema objVO)throws BusinessException;



}
